package org.eclipse.core.databinding.observable.list;

import java.beans.PropertyChangeListener;

public interface SingleSelection<E> {
  public int getSelectedIndex();
  public void setSelectedIndex(int selectedIndex);

  public Object getElementType();
  public E getSelected();

  public void addPropertyChangeListener(PropertyChangeListener listener);
  public void addPropertyChangeListener(String propName, PropertyChangeListener listener);
  public void removePropertyChangeListener(PropertyChangeListener listener);
  public void removePropertyChangeListener(String propName, PropertyChangeListener listener);
}
